package com.chocus.core.bean.product;

import java.io.Serializable;
import java.util.Date;

public class Sku implements Serializable {
	/**
	 * ID
	 */
	private Long id;

	/**
	 * ��ƷID
	 */
	private Long productId;

	/**
	 * ��ɫID
	 */
	private Long colorId;

	/**
	 * ����
	 */
	private String size;

	/**
	 * �˷� Ĭ��10Ԫ
	 */
	private Float deliveFee;

	/**
	 * �ۼ�
	 */
	private Float price;

	/**
	 * ���
	 */
	private Integer stock;

	/**
	 * ��������
	 */
	private Integer upperLimit;

	/**
	 * �ֿ�λ��:���ܺ�
	 */
	private String location;

	/**
	 * SKUͼƬ
	 */
	private String skuImg;

	/**
	 * Skuǰ̨��ʾ����
	 */
	private Integer skuSort;

	/**
	 * SKU����
	 */
	private String skuName;

	/**
	 * �г���
	 */
	private Float marketPrice;

	private Date createTime;

	private Date updateTime;

	private String createUserId;

	private String updateUserId;

	/**
	 * 0,��ʷ 1����
	 */
	private Boolean skuStatus;

	/**
	 * 0:��Ʒ,1��ͨ
	 */
	private Boolean skuType;

	/**
	 * ����
	 */
	private Long sales;

	private Color color;

	private Product product;

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	private static final long serialVersionUID = 1L;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public Long getColorId() {
		return colorId;
	}

	public void setColorId(Long colorId) {
		this.colorId = colorId;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size == null ? null : size.trim();
	}

	public Float getDeliveFee() {
		return deliveFee;
	}

	public void setDeliveFee(Float deliveFee) {
		this.deliveFee = deliveFee;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Integer getUpperLimit() {
		return upperLimit;
	}

	public void setUpperLimit(Integer upperLimit) {
		this.upperLimit = upperLimit;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location == null ? null : location.trim();
	}

	public String getSkuImg() {
		return skuImg;
	}

	public void setSkuImg(String skuImg) {
		this.skuImg = skuImg == null ? null : skuImg.trim();
	}

	public Integer getSkuSort() {
		return skuSort;
	}

	public void setSkuSort(Integer skuSort) {
		this.skuSort = skuSort;
	}

	public String getSkuName() {
		return skuName;
	}

	public void setSkuName(String skuName) {
		this.skuName = skuName == null ? null : skuName.trim();
	}

	public Float getMarketPrice() {
		return marketPrice;
	}

	public void setMarketPrice(Float marketPrice) {
		this.marketPrice = marketPrice;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId == null ? null : createUserId.trim();
	}

	public String getUpdateUserId() {
		return updateUserId;
	}

	public void setUpdateUserId(String updateUserId) {
		this.updateUserId = updateUserId == null ? null : updateUserId.trim();
	}

	public Boolean getSkuStatus() {
		return skuStatus;
	}

	public void setSkuStatus(Boolean skuStatus) {
		this.skuStatus = skuStatus;
	}

	public Boolean getSkuType() {
		return skuType;
	}

	public void setSkuType(Boolean skuType) {
		this.skuType = skuType;
	}

	public Long getSales() {
		return sales;
	}

	public void setSales(Long sales) {
		this.sales = sales;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", id=").append(id);
		sb.append(", productId=").append(productId);
		sb.append(", colorId=").append(colorId);
		sb.append(", size=").append(size);
		sb.append(", deliveFee=").append(deliveFee);
		sb.append(", price=").append(price);
		sb.append(", stock=").append(stock);
		sb.append(", upperLimit=").append(upperLimit);
		sb.append(", location=").append(location);
		sb.append(", skuImg=").append(skuImg);
		sb.append(", skuSort=").append(skuSort);
		sb.append(", skuName=").append(skuName);
		sb.append(", marketPrice=").append(marketPrice);
		sb.append(", createTime=").append(createTime);
		sb.append(", updateTime=").append(updateTime);
		sb.append(", createUserId=").append(createUserId);
		sb.append(", updateUserId=").append(updateUserId);
		sb.append(", skuStatus=").append(skuStatus);
		sb.append(", skuType=").append(skuType);
		sb.append(", sales=").append(sales);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}
}